import 'package:flutter/material.dart';

class MText extends StatelessWidget {
  final String text;
  final double fontSize;
  final Color color;
  final bool isBold;

  MText(this.text, {this.fontSize = 14.0, this.color, this.isBold = false});

  @override
  Widget build(BuildContext context) {
    return Text(
      text,
      style: TextStyle(
        fontSize: fontSize,
        color: color,
        fontWeight: isBold ? FontWeight.bold : FontWeight.normal,
      ),
    );
  }
}
